Directories patch

Introduced $librarydir and $controllerdir.
Added loadLibrary() and loadController().

Ema voted to use loadLibrary() and loadController() in the core because they're less to type. I used the variable though, for requiring library files, to avoid an extra function call that would happen many times.