Merge pull request #19 from apesic/alexle

finishing touches on user profile layout
Refactored javascript
Fixed merge conflict
Fixed reference saving bug
CSS tweaks for profile page
Added uniqueness validation to refs
Fixed ref validation
favicon and viewport adjustment