API getter to public
fixed path to use APP_REST_ROOT
fixed path to use APP_REST_ROOT
refactored util to an object/class
fixed for local db reference
moved facebook button into template and calling it in login.tpl