Add loopbox and alarm api methods and tests

as title says, add loopbox api which was added to uwsgi.it in https://github.com/unbit/uwsgi.it/commit/1fbdc18e88be9f98780ec57bc93ca57f9ce793cd and alarm api which was added in https://github.com/unbit/uwsgi.it/commit/0507f3a66173c4a74c29f09fc8a84a15d6f90761.