Merge pull request #779 from sexnothing/develop

BS3 update for system login
PHP compat fix
Implemented ApiController for user
Pi.js for angular update