Improve Security and testing fixes #21
@SashaAnastasi Thank you for the improvements.
- Add parameter validation to external lib.
- Format install.xml to match moodle-generated version for runtests.
- Add capability check for favourites reordering.
@SashaAnastasi Thank you for the improvements.