Moved runonce class into library folder
Applying PHP Coding Standards (PSR-1 + PSR-2)

Applied the following rules (according to http://cs.sensiolabs.org)
- indentation: Code must use 4 spaces for indenting, not tabs.
- linefeed: All PHP files must use the Unix LF (linefeed) line ending.
- trailing_spaces: Remove trailing whitespace at the end of lines.
- unused_use: Unused use statements must be removed.
- php_closing_tag: The closing ?> tag MUST be omitted from files containing only PHP.
- short_tag: PHP code must use the long tags or the short-echo tags; it must not use the other tag variations.
- return: An empty line feed should precede a return statement.
- visibility: Visibility must be declared on all properties and methods; abstract and final must be declared before the visibility; static must be declared after the visibility.
- phpdoc_params: All items of the @param phpdoc tags must be aligned vertically.
- eof_ending: A file must always end with an empty line feed.
- include: Include and file path should be devided with single space. File path should not be placed under brackets.
- controls_spaces: A single space should be between: the closing brace and the control, the control and the opening parenthese, the closing parenthese and the opening brace.
- elseif: The keyword elseif should be used instead of else if so that all control keywords looks like single words.