Added ability to run server outside of WordPress