change UserDiscriminator to throw an Exception when no user-system is active

This makes it much clearer what to do, instead of getting an
"Call to a member function xx() on a non-object" error

And also cleans-up some unneeded code. the user existence is already
checked in setCurrentUser() so there is no need to check it again
when getting the user-config
change UserConfig to throw an Exception when the template is invalid

This means either a none registered template one or empty value
fix broken UnexpectedTypeException
fix file headers
Merge pull request #36 from rollerworks/changes

This PR was merged into rollerworks:master branch.

Discussion
----------

Minor improvements

                      
|Q             |A    |
|---           |---  |
|Bug Fix?:     |n    |
|New Feature?: |n    |
|BC Breaks?:   |y    |
|Deprecations?:|n    |
|Tests Pass?:  |y    |
|Fixed Tickets:|GH-34|
|License:      |MIT  |
                      

This fixes some minor issues users been having, a BC break is that UserConfig and UserDiscriminator getters now throw an exception when there is no value, instead of returning null

Commits
-------

ce938008ed97fccaf3be01d0968724e7f199cec9 change UserDiscriminator to throw an Exception when no user-system is active

This makes it much clearer what to do, instead of getting an
"Call to a member function xx() on a non-object" error

And also cleans-up some unneeded code. the user existence is already
checked in setCurrentUser() so there is no need to check it again
when getting the user-config sstok
4cac27f721bf75cc4a54c2224dbc0b58df913814 change UserConfig to throw an Exception when the template is invalid

This means either a none registered template one or empty value sstok
88d9c8f0479dbe576e5ac0dc547e125867841fa8 fix broken UnexpectedTypeException sstok
752779f86a56a31cc5b77049b6187fa88c1f3639 fix file headers sstok