Added server side tests
Code is formatted as javascript now
Added spec for creating actions