Feature 1028 - Frontend api

See https://github.com/mybb/mybb/issues/1028
 
The frontend api will allow for easier site integration.