Moved method System::library() to common functions
Added function theme()

Generates a URL to a theme file
Added custom exception WebworkException
Make use of WebworkException