Moved some models to scala again
Refactored to java 7
Improved dequeue performance dramatically